#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{

	return 0;
}

int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize)
{
    for (int i = 0; i < numsSize; i++)
    {
        if (nums[abs(nums[i]) - 1] > 0)
            nums[abs(nums[i]) - 1] = -(nums[abs(nums[i]) - 1]);
    }
    int* ret = (int*)malloc(sizeof(int) * (numsSize));
    *returnSize = 0;
    for (int i = 0; i < numsSize; i++)
    {
        if (nums[i] > 0)
        {
            ret[*returnSize] = i + 1;
            *returnSize += 1;
        }
    }
    return ret;
}